package com.mes.service.cb;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.cb.PlanMapper;
import com.mes.entity.cb.PageBean;
import com.mes.entity.cb.Plan;

/**
 * @ClassName: PlanServiceImpl 
 * @Description:采购
 * @Author cb
 * @Date 2017年12月20日 下午3:49:02 
 * @version 1.0
 */
@Service
@Transactional
public class PlanServiceImpl implements PlanService{
	
	@Resource
	private PlanMapper planMapper;

	@Override
	public List<Plan> planList(PageBean page) {
		return planMapper.planList(page);
	}

	@Override
	public int getTotal(PageBean page) {
		return planMapper.getTotal(page);
	}

	@Override
	public int getPlanTotal() {
		
		return planMapper.getPlanTotal();
	}

	@Override
	public List<Plan> PlanAll(PageBean page) {
		return planMapper.PlanAll(page);
	}

	@Override
	public int planDelete(String ids) {
		String id = ids;
		return planMapper.planDelete(id);
	}

	@Override
	public Long planAdd(Plan plan) {
		return planMapper.planAdd(plan);
	}

	@Override
	public int planEdit(Plan plan) {
		return planMapper.planEdit(plan);
	}

}
